<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/6
 * Time: 14:41
 */

/**
 * 测试test自定义协议
 */

//use Workerman\Worker;
//
//require_once "./workerman/Autoloader.php";
//
//
//
//$json_worker = new Worker('http://0.0.0.0:1243');
//// 启动2个进程对外提供服务
//$json_worker->count = 2;
//// 接收到浏览器发送的数据时回复hello world给浏览器
//$json_worker->onMessage = function ($connection, $data) {
//    // 向浏览器发送hello world
//    $connection->send('hellos world');
//};
//
//Worker::runAll();


